'''
    说明：这个主要介绍变量的使用，重在说明局部变量和全局变量
'''


'''
    局部变量与全局变量

def spam():
    eggs = 'spam local'
    print(eggs)

def bacon():
    eggs = 'bacon local'
    print(eggs)
    spam()
    print(eggs)

eggs = 'global'
bacon()
print(eggs)
'''

'''
    global的使用

def spam():
    global eggs
    eggs = 'spam'

egs = 'global'
spam()
print(eggs)
'''
